//
//  HotShop.m
//  project_delicious
//
//  Created by 章历杰 on 15/3/25.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "HotShop.h"

@implementation HotShop

- (void)dealloc
{
    [_hotShopFee release];
    [_hotShopName release];
    [_locationPic release];
    [_hotShopLocation release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //名
        self.hotShopName = [[UILabel alloc] initWithFrame:CGRectMake(20, 5, self.frame.size.width/2+50, self.frame.size.height/2-5)];
        self.hotShopName.font = [UIFont fontWithName:@"Marker Felt" size:14];
        //self.hotShopName.backgroundColor = [UIColor redColor];
        [self addSubview:_hotShopName];
        [_hotShopName release];
        //消费
        self.hotShopFee = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width-80, 5, 80, self.frame.size.height/2-5)];
        self.hotShopFee.font= [UIFont fontWithName:@"Marker Felt" size:14];
        [self addSubview:_hotShopFee];
        [_hotShopFee release];
        //定位图
        self.locationPic = [[UIImageView alloc] initWithFrame:CGRectMake(5, 10+_hotShopName.frame.size.height, 15, 15)];
        _locationPic.image = [UIImage imageNamed:@"HOTSHOP_lp.png"];
        [self addSubview:_locationPic];
        [_locationPic release];
        //位置
        self.hotShopLocation = [[UILabel alloc] initWithFrame:CGRectMake(20, _locationPic.frame.origin.y-10, self.frame.size.width-40, 40)];
        self.hotShopLocation.font = [UIFont fontWithName:@"Marker Felt" size:12];
        //self.hotShopLocation.backgroundColor = [UIColor cyanColor];
        //self.hotShopLocation.editable = NO;
        //self.hotShopLocation.scrollEnabled = NO;
        self.hotShopLocation.numberOfLines = 0;
        //[self.hotShopLocation sizeToFit];
        [self addSubview:_hotShopLocation];
        [_hotShopLocation release];
        
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
